#ifndef GND_MODULE_H
#define  GND_MODULE_H

#include <gtk/gtk.h>

#define GND_TYPE_MODULE gnd_module_get_type()
G_DECLARE_INTERFACE(GndModule, gnd_module, GND, MODULE, GObject)

struct _GndModuleInterface
{
    GTypeInterface parent_iface;
    void (*start) (GndModule * self, gpointer data);
    void (*stop) (GndModule * self, gpointer data);
    void (*connect_status) (GndModule * self,
                            int status,
                            gpointer data);
};

void gnd_module_start(GndModule * self, gpointer data);     //启动模块
void gnd_module_stop(GndModule * self, gpointer data);      //停止模块
//void gnd_module_connect_close(GndModule * self);
void gnd_module_connect_status(GndModule * self, int status, gpointer data);    //模块session的socket连接状态回调

#endif
